﻿using FreeSql.DataAnnotations;
using KrasDD.Attributes;

namespace KrasDD.Models
{
    [
        JsonObject(MemberSerialization.OptIn),
        Table(Name = "[innovator].[SERVER_EVENT]", DisableSyncStructure = false)
    ]
    [ItemType("EF83A1B4C5D6E7F8A9B0C1D2E3F4A5C2", "SERVER_EVENT", true)]
    public partial class SERVER_EVENT : Relationships<ITEMTYPE, METHOD>
    {
        [JsonProperty, Column(StringLength = 64)]
        public string BEHAVIOR { get; set; }

        [JsonProperty, Column(StringLength = 64, IsNullable = false)]
        public string EVENT_VERSION { get; set; } = "version_1";

        [JsonProperty, Column(DbType = "bit")]
        public bool IS_REQUIRED { get; set; }

        [JsonProperty, Column(StringLength = 64)]
        public string LABEL { get; set; }

        [JsonProperty, Column(StringLength = 64)]
        public string? EVENT_TYPE { get; set; }

    }
}
